qrisp.cnot_depth_indicator#
- cnot_depth_indicator(op)[source]#
This function returns the CNOT-depth of an Operation object.
In NISQ-era devices, CNOT gates are the restricting bottleneck for quantum circuit execution. This function can be used as a gate-speed specifier for the :meth:`compile <qrisp.QuantumSession.compile>`_ method.
- Parameters:
- opOperation
The operation, whose CNOT-depth should be computed.
- Returns:
- float
The CNOT-depth of the Operation.